package com.mayikt.pay.config;

import com.mayikt.pay.sdk.union.SDKConfig;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

@Component
public class InitUnionPayProject implements ApplicationRunner {
    /**
     * springboot 启动以后会执行该方法
     * @param args
     * @throws Exception
     */
    @Override
    public void run(ApplicationArguments args) throws Exception {
        SDKConfig.getConfig().loadPropertiesFromSrc();
    }
}
